﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace Server_NhaSach.DataTransferObject
{
    public class CTDieuChinhKhoDTO
    {
        #region "Khai báo các biến"
        private string _maPDCK;
        private string _maMH;       
        private int _soluongchuyen;   
        private double _dongia;      
        private double _thanhtien;            
        #endregion
        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaPDCK
        {
            get { return _maPDCK; }
            set { _maPDCK = value; }
        }  
        [DataMember]
        public string MaMH
        {   
            get { return _maMH; }
            set { _maMH = value; }
        } 
        [DataMember]
        public int SoLuongChuyen
        {
            get { return _soluongchuyen; }
            set { _soluongchuyen = value; }
        }     
        [DataMember]
        public double DonGia
        {
            get { return _dongia; }
            set { _dongia = value; }
        }  
        [DataMember] 
        public double ThanhTien
        {
            get { return _thanhtien; }
            set { _thanhtien = value; }
        } 
        #endregion
        #region "Khai báo các contructor"
        public CTDieuChinhKhoDTO() { }
        public CTDieuChinhKhoDTO( string maPDCK, string maMH, int sl, double dg, double thanhtien) 
        {
            MaPDCK= maPDCK;
            MaMH= maMH;
            SoLuongChuyen=sl;
            DonGia= dg;
            ThanhTien= thanhtien;
        }
        public CTDieuChinhKhoDTO(CTDieuChinhKhoDTO CTDieuChinhKho) 
        {
            this.MaPDCK = CTDieuChinhKho.MaPDCK;
            this.MaMH = CTDieuChinhKho.MaMH;
            this.SoLuongChuyen = CTDieuChinhKho.SoLuongChuyen;
            this.DonGia = CTDieuChinhKho.DonGia;
            this.ThanhTien = CTDieuChinhKho.ThanhTien;
        }
        #endregion
    }
}